
<!DOCTYPE html>
<html>
<head>
<title>IT工程师后台管理</title>
<meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport' />
<link href='css/core/bootstrap.css' media='all' rel='stylesheet' type='text/css' />
<link href='css/core/light-theme.css' id='color-settings-body-color' media='all' rel='stylesheet' type='text/css' />
<link href='css/base.css' media='all' rel='stylesheet' type='text/css' />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></head>
<body class=''>
<header id="header">
    
</header>

<div id='wrapper'>
    <div id='main-nav-bg'></div>
    <nav class='' id='main-nav'>
        <div id="guide" class='navigation'>
            
        </div>
    </nav>
    <section id='content'>
        <div class='container-fluid'>
            <div class='row-fluid' id='content-wrapper'>
                <div class='span12'>
                    <div class='page-header'>
                        <h1 class='pull-left'>
                            <i class='icon-dashboard'></i>
                            <span>博创华宇教育管理</span>
                        </h1>
                    </div>
                    <div class='row-fluid'>
                        <div class='span12 box bordered-box blue-border'>
                            <div class='box-header'>
                                <div class='title'>
                                    <i class='icon-user-md'></i>
                                    创建用户
                                </div>
                            </div>
                            <div class='box-content box-double-padding'>
                                <div class='form' style='margin-bottom: 0;'>
                                    <fieldset>
                                        <!-- <div class='span4'>
                                            <div class='lead'>
                                                <i class='icon-github text-contrast'></i>
                                                上传头像
                                            </div>
                                            <small class='muted'><img src="images/avatar.jpg" style="width:100%;"></small>
                                        </div> -->
                                        <div id="form" class='span7 offset1'>
                                            <div class='row-fluid'>
                                                <label class='control-label'>用户类型：</label>
                                                <select id="userType" class='select2 input-block-level'>
                                                </select>
                                            </div>
                                            <div class='control-group'>
                                                <label class='control-label'>邮箱：</label>
                                                <div class='controls'>
                                                    <input class='span12' id='email' placeholder='' type='text' />
                                                    <!-- <small class='muted'>6-16位字母或数字</small> -->
                                                </div>
                                            </div>
                                            <div class='control-group'>
                                                <label class='control-label'>手机号：</label>
                                                <div class='controls'>
                                                    <input class='span12' id='phone' placeholder='' type='text' />
                                                    <!-- <small class='muted'>6-16位字母或数字</small> -->
                                                </div>
                                            </div>
                                            <div class='control-group'>
                                                <label class='control-label'>登录用户名：<small class='muted'>6-16位字母或数字</small></label>
                                                <div class='controls'>
                                                   <!--  <input class='span12' id='username'onkeyup="value=value.replace(/[^\w\.\/]/ig,'')" maxlength="16" placeholder='' type='text' /> -->
                                                   <input class='span12' id='username' placeholder='' type='text' onblur="checkUserName();"/>
                                                </div>
                                            </div>
                                            <div class='control-group'>
                                                <label class='control-label'>密码：</label>
                                                <div class='controls'>
                                                    <input class='span12' id='password' placeholder='' type='password' />
                                                    <p class='help-block' />
                                                </div>
                                            </div>
                                            <div class='control-group'>
                                                <label class='control-label'>确认密码：</label>
                                                <div class='controls'>
                                                    <input class='span12' id='newpassword' placeholder='' type='password' />
                                                    <p class='help-block' />
                                                </div>
                                            </div>
                                        </div>
                                    </fieldset>
                                   
                                    <!-- <fieldset>
                                        <div class='span4 box'>
                                            <div class='lead'>
                                                <i class='icon-ambulance contrast'></i>
                                                声明:
                                            </div>
                                            <small class='muted'>用户信息关系重大，请保持信息的完整性和真实性</small>
                                        </div>
                                        <div class='span7 offset1'>
                                             <div class='control-group'>
                                                <label class='control-label'>想要学习的语言</label>
                                                <div class='controls'>
                                                    <input class='span12' id='' placeholder='如: java,c,webapp...' type='text' />
                                                </div>
                                            </div>
                                            <div class='control-group'>
                                                <label class='control-label'>爱好</label>
                                                <div class='controls'>
                                                    <label class='checkbox inline'>
                                                        <input id='inlineCheckbox1' type='checkbox' value='option1' />
                                                        听歌
                                                    </label>
                                                    <label class='checkbox inline'>
                                                        <input id='inlineCheckbox2' type='checkbox' value='option2' />
                                                        看书
                                                    </label>
                                                    <label class='checkbox inline'>
                                                        <input id='inlineCheckbox3' type='checkbox' value='option3' />
                                                        打游戏
                                                    </label>
                                                </div>
                                            </div>
                                        </div>
                                    </fieldset> -->
                                    <div>
                                        <div class='text-right' style='width:880px;height: 35px;'>
                                            <div id="save" class='btn btn-primary btn-large' style="float: right;">
                                                <i class='icon-save'></i>
                                                提交
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>   
        </div>            
    </section>
</div>
<script src='js/core/jquery.min.js' type='text/javascript'></script>
<script src='js/core.js' type='text/javascript'></script>
<script src='js/res.js' type='text/javascript'></script>
<script src='js/init.js' type='text/javascript'></script>
<script src='js/user.js' type='text/javascript'></script>
</body>
<script>
User.init();
function checkUserName(){
    var reg = /^([A-Za-z0-9]{6,16})$/;
    var name = $("#username").val();
    if (!reg.test(name)) {
        $alert("用户名不正确");
    }
}
</script>
</html>